snapshot: Allow passing the bounds of the created paintable
authorBenjamin Otte <otte@redhat.com>
Mon, 2 Apr 2018 04:15:50 +0000 (06:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Apr 2018 12:56:39 +0000 (14:56 +0200)
commitffc7b2bb0afd04cacbe45cff6f27eb5d644d5b2b
tree620bed58191f6d4985cf8e09693c79bba0aeda02
parent12fedca726d42f2087ffc3c5621eeb6757265319
snapshot: Allow passing the bounds of the created paintable

This allows being more specific about the size.
It's useful in particular when the resulting render nodes might be
too small for the size, not only when they are too large. For the
latter case, using a clip node would be enough.

It also requires adding a clip node when rendering the resulting
paintable, but that should be optimized out by GtkSnapshot when not
necessary.
gtk/gtkcolorbutton.c
gtk/gtkcolorswatch.c
gtk/gtkiconview.c
gtk/gtkrendernodepaintable.c
gtk/gtkrendernodepaintableprivate.h
gtk/gtksnapshot.c
gtk/gtksnapshot.h
gtk/gtktextutil.c
gtk/gtktreeview.c
tests/testlist3.c